package com.lhl.flex.hah.task;

import com.lhl.flex.hah.entity.TableTeteteKakak;
import com.lhl.flex.hah.entity.table.TableTeteteKakakTableDef;
import com.lhl.flex.hah.mapper.TableTeteteKakakMapper;
import com.mybatisflex.core.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component

public class TaskDemo {

	@Autowired
	private TableTeteteKakakMapper tableTeteteKakakMapper;
	@Scheduled(cron = "0/5 * * * * *")
	public void synTask() {
		QueryWrapper query = new QueryWrapper();
		query.where(TableTeteteKakakTableDef.TABLE_TETETE_KAKAK.COLUMN1_TK.ge(100));
		TableTeteteKakak tableTeteteKakak = tableTeteteKakakMapper.selectOneByQuery(query);
		System.out.println(tableTeteteKakak);

	}

}
